class CreateUsers < ActiveRecord::Migration
  
  def self.up
    create_table "users", :force => true do |t|
      t.string    :login
      t.string    :email
      t.string    :phone
      t.string    :first_name
      t.string    :last_name
      t.string    :crypted_password, :limit => 40
      t.string    :salt, :limit => 40
      t.string    :remember_token
      t.datetime  :remember_token_expires_at
      t.string    :created_by
      t.string    :updated_by
      t.timestamps
    end
    add_index :users, :login, :unique => true
  end

  def self.down
    drop_table "users"
  end
end
